<div class="container-fluid">
      <div class="row-fluid container_bg">
        <div ng-include="'side-menu.html'"></div>
        <div class="span9 pos_r" style="padding-right:20px;">
			<div class="container_title">
				<div class=""><h1>Users List</h1></div>
				<div  id="success_alert" class="alert_sucess alert alert-success span11" style="display:none;">
					<i class="icon-ok"></i>&nbsp;&nbsp;
					<span  id="cancelled_order"></span>
				</div>
				<div class="container_form_top table-responsive" id="orderHistory">
					<table ng-table="tableParams" class="table">
						<tr ng-repeat="user in $data">
							<td data-title="'Date Added'">{{user.date_added}}</td>
							<td data-title="'User Name'">{{user.user_name}}</td>
							<td data-title="'Email'">{{user.email}}</td>
							<td data-title="'Phone'">{{user.phone}}</td>
							<td  id='st{{user.user_id}}' data-title="'Status'">
								<p  ng-if='user.status==0'>Blocked</p>
								<p  ng-if='user.status==1'>Active</p>	
							</td>
							<td data-title="'Action'">
								<p id='b{{user.user_id}}'>
		<a ng-if='user.status==0' href='javascript:void(0);' ng-click="changeStatus(1,user.user_id,user.user_type_id)">Active/</a>					
		<a ng-if='user.status==1' href='javascript:void(0);' ng-click="changeStatus(0,user.user_id,user.user_type_id)">Block/</a>
								</p>
								<a id='avw{{user.user_id}}'  href="javascript:void(0)" ng-click="openPopups(2,user.user_id)">View</a>			
							</td>
						</tr>
					</table>
				</div>			
				<div id="errornodata_message">{{errornodata_message}}
				</div>
			</div>
          
        </div><!--/span-->
      </div><!--/row-->
</div><!--/.fluid-container-->
<script id="viewDetails.html" type="text/ng-template">
	<div class="ngdialog-message" >
		<div class="modal-header">
			<h3 id="myModalLabel">User Detailes</h3>
		</div>
		<table class="table table-condensed" ng-bind-html="allDetails">
		</table>	
	</div>
</script>
